package com.example.netease.service.impl;

import com.example.netease.dao.PathDao;
import com.example.netease.entity.Path;
import com.example.netease.service.PathService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("pathService")
public class PathServiceImpl implements PathService {

    @Resource
    private PathDao pathDao;

    @Override
    public int insertPath(String token) {
        return pathDao.insertPath(token);
    }

    @Override
    public Path selectPath(String token) {
        return pathDao.selectPath(token);
    }
}
